Microsoft DirectX 8.1 (C++)

CAOffer.NotifyTollStateChanged

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The NotifyTollStateChanged method signals that the state of a toll has changed.

Syntax

objCAOffer.NotifyTollStateChanged(
    Toll As ICAToll, 
    enStateFrom As CATollState)

Parameters

  Toll

Specifies the ICAToll object whose state has changed.

  enStateFrom

CATollState constant specifying the previous state of the toll.

Error Codes

If the method fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

No return value.

Remarks

This helper method signals a StateChanged event. If the state switches from unselected to selected, this method also unselects the toll that was previously selected.

A toll that is attached to an offer should call this method whenever its state changes.

See Also